<?php
/*
+--------------------------------------------------------------------------
|   WeCenter [#RELEASE_VERSION#]
|   ========================================
|   by WeCenter Software
|   © 2011 - 2014 WeCenter. All Rights Reserved
|   http://www.wecenter.com
|   ========================================
|   Support: WeCenter@qq.com
|
+---------------------------------------------------------------------------
*/


if (!defined('IN_ANWSION'))
{
	die;
}

class org_class extends AWS_MODEL
{
	public function add_org($data = array())
	{
		return $this->insert('org', $data);
	}

    public function update_org($update_data, $uid)
    {


        return $this->update('org', $update_data, 'uid = ' . $uid);
    }

    public function get_org_by_uid($uid)
    {
        return $this->fetch_row('org', 'uid = ' . intval($uid));
    }




}